#!/bin/bash
echo "=== 清理开发环境 ==="

read -p "⚠️  这将删除所有构建文件和数据，确定继续？(y/N): " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
    echo "❌ 操作已取消"
    exit 1
fi

echo "1. 停止运行中的服务..."
/d/vc/devops-platform/tools/scripts/stop-dev.sh

echo "2. 删除构建目录..."
rm -rf /d/vc/devops-platform/build

echo "3. 清理日志文件..."
rm -rf /d/vc/devops-platform/logs/*

echo "4. 清理数据文件..."
rm -rf /d/vc/devops-platform/data/*

echo "✅ 清理完成"
